package com.lagou.zk.mysql;
import cn.hutool.json.JSONUtil;
public class JDBCParam {
     private String url;
     private String name;
     private String passwd;

    public JDBCParam() {
    }

    public JDBCParam(String url, String name, String passwd) {
        this.url = url;
        this.name = name;
        this.passwd = passwd;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public static void main(String[] args) {
        JDBCParam jdbcParam= new JDBCParam("jdbc:mysql://linux123:3306/azkaban?characterEncoding=utf-8&useSSL=false", "azkaban","azkaban");
        System.out.println(JSONUtil.toJsonStr(jdbcParam));

    }
}
